//
//  MenuSearchPage_Class.m
//  Foodie_Talk_ProjectA
//
//  Created by Ming on 15-6-4.
//  Copyright (c) 2015年 蓝欧科技. All rights reserved.
//

#import "MenuSearchPage_Class.h"

@implementation MenuSearchPage_Class
- (void)dealloc
{
    [_burdens release];
    [_name release];
    [_allClick release];
    [_img release];
    [_codeId release];
    [_favorites release];
    
    [_title release];
    [_content release];
    
    [_ingreName1 release];
    [_ingreName2 release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"code"]) {
        self.codeId = [NSString stringWithFormat:@"%@", value];
    }
}

+ (NSMutableArray *)ClassArrayWithDictionaryArray:(NSArray *)dicArray
{
    NSMutableArray *tempArr = [NSMutableArray array];
    for (NSDictionary *dic in dicArray) {
        MenuSearchPage_Class *baseClass = [[MenuSearchPage_Class alloc] init];
        [baseClass setValuesForKeysWithDictionary:dic];
        [tempArr addObject:baseClass];
        [baseClass release];
    }
    return tempArr;
}
@end
